import proFetch from "../../../../../../public/functions/project-fetch";

/**
 * 是否可编辑
 * @param pk_conmodel
 * @param pk_org
 * @returns {Promise<any>}
 * @constructor
 */
export default function BeforeDoValidate(pk_org,pk_conmodel) {
    const postData = {
        pk_org,
        pk_conmodel
    };

    return new Promise( ((resolve, reject) => {
        proFetch({
            url: '/nccloud/hrcm/templet/BeforeDoValidate.do',
            body: postData,
        })
            .then((res) => {
                if (res.success) {
                    resolve(res)
                }
            });
        })
    );
}